<?php 

$group_id = $_GET['group_id'];

include("../db/opendb.php");

include("functions.php");

$gquery = "select u.Username as group_user, g.User_ID from Network_Groups_Users g inner join Users u on g.User_ID = u.ID where g.Group_ID = '".$group_id."' ";

$gresult = mysql_query($gquery) or die ("SQL Error".mysql_error());

$num_group_users = mysql_num_rows($gresult);

$xml_output = "<entries>\n"; 

$query = "select g.Name from Network_Groups g where g.ID = '".$group_id."' ";


$result = mysql_query($query) or die ("SQL Error".mysql_error());

$xml = getXML_group($result);

$xml_output .= $xml;

$xml_output .= "</entries>";  

echo $xml_output;

?>
